Optimal. Leaf size=145 \[ -\frac {\sec ^5(c+d x)}{5 a^4 d}+\frac {9 \sec ^7(c+d x)}{7 a^4 d}-\frac {16 \sec ^9(c+d x)}{9 a^4 d}+\frac {8 \sec ^{11}(c+d x)}{11 a^4 d}-\frac {4 \tan ^5(c+d x)}{5 a^4 d}-\frac {16 \tan ^7(c+d x)}{7 a^4 d}-\frac {20 \tan ^9(c+d x)}{9 a^4 d}-\frac {8 \tan ^{11}(c+d x)}{11 a^4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps
used = 18, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2954, 2952,
2686, 14, 2687, 276} \begin {gather*} -\frac {8 \tan ^{11}(c+d x)}{11 a^4 d}-\frac {20 \tan ^9(c+d x)}{9 a^4 d}-\frac {16 \tan ^7(c+d x)}{7 a^4 d}-\frac {4 \tan ^5(c+d x)}{5 a^4 d}+\frac {8 \sec ^{11}(c+d x)}{11 a^4 d}-\frac {16 \sec ^9(c+d x)}{9 a^4 d}+\frac {9 \sec ^7(c+d x)}{7 a^4 d}-\frac {\sec ^5(c+d x)}{5 a^4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 276
Rule 2686
Rule 2687
Rule 2952
Rule 2954
Rubi steps
\begin {align*} \int \frac {\sec (c+d x) \tan ^3(c+d x)}{(a+a \sin (c+d x))^4} \, dx &=\frac {\int \sec ^9(c+d x) (a-a \sin (c+d x))^4 \tan ^3(c+d x) \, dx}{a^8}\\ &=\frac {\int \left (a^4 \sec ^9(c+d x) \tan ^3(c+d x)-4 a^4 \sec ^8(c+d x) \tan ^4(c+d x)+6 a^4 \sec ^7(c+d x) \tan ^5(c+d x)-4 a^4 \sec ^6(c+d x) \tan ^6(c+d x)+a^4 \sec ^5(c+d x) \tan ^7(c+d x)\right ) \, dx}{a^8}\\ &=\frac {\int \sec ^9(c+d x) \tan ^3(c+d x) \, dx}{a^4}+\frac {\int \sec ^5(c+d x) \tan ^7(c+d x) \, dx}{a^4}-\frac {4 \int \sec ^8(c+d x) \tan ^4(c+d x) \, dx}{a^4}-\frac {4 \int \sec ^6(c+d x) \tan ^6(c+d x) \, dx}{a^4}+\frac {6 \int \sec ^7(c+d x) \tan ^5(c+d x) \, dx}{a^4}\\ &=\frac {\text {Subst}\left (\int x^8 \left (-1+x^2\right ) \, dx,x,\sec (c+d x)\right )}{a^4 d}+\frac {\text {Subst}\left (\int x^4 \left (-1+x^2\right )^3 \, dx,x,\sec (c+d x)\right )}{a^4 d}-\frac {4 \text {Subst}\left (\int x^6 \left (1+x^2\right )^2 \, dx,x,\tan (c+d x)\right )}{a^4 d}-\frac {4 \text {Subst}\left (\int x^4 \left (1+x^2\right )^3 \, dx,x,\tan (c+d x)\right )}{a^4 d}+\frac {6 \text {Subst}\left (\int x^6 \left (-1+x^2\right )^2 \, dx,x,\sec (c+d x)\right )}{a^4 d}\\ &=\frac {\text {Subst}\left (\int \left (-x^4+3 x^6-3 x^8+x^{10}\right ) \, dx,x,\sec (c+d x)\right )}{a^4 d}+\frac {\text {Subst}\left (\int \left (-x^8+x^{10}\right ) \, dx,x,\sec (c+d x)\right )}{a^4 d}-\frac {4 \text {Subst}\left (\int \left (x^6+2 x^8+x^{10}\right ) \, dx,x,\tan (c+d x)\right )}{a^4 d}-\frac {4 \text {Subst}\left (\int \left (x^4+3 x^6+3 x^8+x^{10}\right ) \, dx,x,\tan (c+d x)\right )}{a^4 d}+\frac {6 \text {Subst}\left (\int \left (x^6-2 x^8+x^{10}\right ) \, dx,x,\sec (c+d x)\right )}{a^4 d}\\ &=-\frac {\sec ^5(c+d x)}{5 a^4 d}+\frac {9 \sec ^7(c+d x)}{7 a^4 d}-\frac {16 \sec ^9(c+d x)}{9 a^4 d}+\frac {8 \sec ^{11}(c+d x)}{11 a^4 d}-\frac {4 \tan ^5(c+d x)}{5 a^4 d}-\frac {16 \tan ^7(c+d x)}{7 a^4 d}-\frac {20 \tan ^9(c+d x)}{9 a^4 d}-\frac {8 \tan ^{11}(c+d x)}{11 a^4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 166, normalized size = 1.14 \begin {gather*} \frac {\sec ^3(c+d x) (844800-215721 \cos (c+d x)-619520 \cos (2 (c+d x))+23969 \cos (3 (c+d x))+32768 \cos (4 (c+d x))+54475 \cos (5 (c+d x))-8192 \cos (6 (c+d x))-2179 \cos (7 (c+d x))+844800 \sin (c+d x)-191752 \sin (2 (c+d x))+11264 \sin (3 (c+d x))-69728 \sin (4 (c+d x))+25600 \sin (5 (c+d x))+17432 \sin (6 (c+d x))-1024 \sin (7 (c+d x)))}{7096320 a^4 d (1+\sin (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.40, size = 220, normalized size = 1.52
method | result | size |
risch | \(-\frac {32 \left (924 i {\mathrm e}^{8 i \left (d x +c \right )}+693 \,{\mathrm e}^{9 i \left (d x +c \right )}-726 i {\mathrm e}^{6 i \left (d x +c \right )}-1650 \,{\mathrm e}^{7 i \left (d x +c \right )}-22 i {\mathrm e}^{4 i \left (d x +c \right )}+517 \,{\mathrm e}^{5 i \left (d x +c \right )}-50 i {\mathrm e}^{2 i \left (d x +c \right )}-64 \,{\mathrm e}^{3 i \left (d x +c \right )}+2 i+16 \,{\mathrm e}^{i \left (d x +c \right )}\right )}{3465 \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{11} \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )^{3} d \,a^{4}}\) | \(143\) |
derivativedivides | \(\frac {-\frac {1}{48 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {1}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {16}{11 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{11}}-\frac {8}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{10}}+\frac {184}{9 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}-\frac {32}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{8}}+\frac {235}{7 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{7}}-\frac {145}{6 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{6}}+\frac {58}{5 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {13}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {13}{48 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {3}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {16}{512 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+512}}{a^{4} d}\) | \(220\) |
default | \(\frac {-\frac {1}{48 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {1}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}+\frac {16}{11 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{11}}-\frac {8}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{10}}+\frac {184}{9 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{9}}-\frac {32}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{8}}+\frac {235}{7 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{7}}-\frac {145}{6 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{6}}+\frac {58}{5 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {13}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {13}{48 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}+\frac {3}{32 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {16}{512 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+512}}{a^{4} d}\) | \(220\) |
norman | \(\frac {-\frac {128 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{21 a d}-\frac {244}{3465 a d}-\frac {4 \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}-\frac {32 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 a d}-\frac {188 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 a d}-\frac {1016 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{315 a d}-\frac {64 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{315 a d}-\frac {1952 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{3465 a d}-\frac {1220 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{693 a d}-\frac {7808 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3465 a d}-\frac {584 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{105 a d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3} a^{3} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{11}}\) | \(228\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 508 vs.
\(2 (129) = 258\).
time = 0.33, size = 508, normalized size = 3.50 \begin {gather*} \frac {4 \, {\left (\frac {488 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {1525 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {1952 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {2794 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {176 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {4818 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {5280 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {10857 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {5544 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} + \frac {3465 \, \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} + 61\right )}}{3465 \, {\left (a^{4} + \frac {8 \, a^{4} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {25 \, a^{4} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {32 \, a^{4} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {11 \, a^{4} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {88 \, a^{4} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {99 \, a^{4} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {99 \, a^{4} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {88 \, a^{4} \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} + \frac {11 \, a^{4} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} - \frac {32 \, a^{4} \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} - \frac {25 \, a^{4} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}} - \frac {8 \, a^{4} \sin \left (d x + c\right )^{13}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{13}} - \frac {a^{4} \sin \left (d x + c\right )^{14}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{14}}\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 154, normalized size = 1.06 \begin {gather*} -\frac {128 \, \cos \left (d x + c\right )^{6} - 320 \, \cos \left (d x + c\right )^{4} + 805 \, \cos \left (d x + c\right )^{2} + 4 \, {\left (8 \, \cos \left (d x + c\right )^{6} - 60 \, \cos \left (d x + c\right )^{4} + 35 \, \cos \left (d x + c\right )^{2} - 105\right )} \sin \left (d x + c\right ) - 735}{3465 \, {\left (a^{4} d \cos \left (d x + c\right )^{7} - 8 \, a^{4} d \cos \left (d x + c\right )^{5} + 8 \, a^{4} d \cos \left (d x + c\right )^{3} - 4 \, {\left (a^{4} d \cos \left (d x + c\right )^{5} - 2 \, a^{4} d \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.63, size = 198, normalized size = 1.37 \begin {gather*} -\frac {\frac {1155 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right )}}{a^{4} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}^{3}} - \frac {3465 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{10} + 45045 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 279510 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} + 669900 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 1205358 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 1334718 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1144440 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 627660 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 257345 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 57013 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 5498}{a^{4} {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}^{11}}}{110880 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 15.89, size = 303, normalized size = 2.09 \begin {gather*} \frac {\frac {244\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}}{3465}+\frac {1952\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{3465}+\frac {1220\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{693}+\frac {7808\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3465}+\frac {1016\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{315}+\frac {64\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{315}+\frac {584\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{105}+\frac {128\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{21}+\frac {188\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{15}+\frac {32\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{5}+4\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}}{a^4\,d\,{\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )-\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}^3\,{\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )+\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}^{11}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________